import request from "@/utils/request";

export function list(params){
    return request({
        url:'/department/selectAll',
        method:'get',
        params:params
    })
}


export function save(data){
    return request({
        url:'/department/save',
        method:'POST',
        data:data
    })
}


export function edit(data){
    return request({
        url:'/department/edit',
        method:'POST',
        data:data
    })
}


export function delDepartment(id){
    return request({
        url:'/department/delete/'+id,
        method:'DELETE',
    })
}



export function deleteBatch(data){
    return request({
        url:'/department/deleteBatch',
        method:'POST',
        data:data
    })
}

export function findAll(){
    return request({
        url:'/department/selectAll',
        method:'GET'
    })
}


export function selectSecondClassDepartmentInfosList(){
    return request({
        url:'/department/selectSecondClassDepartmentInfosList',
        method:'GET'
    })
}